package edu.spex.yjl.week07;

public class Human {
    private String area;
    private String mainFood;
    private String skinColor;
    // TODO 给language赋初值“人话”
    private String language = "人话";
    // TODO 默认构造方法，方法里实现输出打印“我是人类”
    public Human(){
        System.out.println("我是人类");
    }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
    public Human(String area,String mainFood,String skinColor,String language){
        this.area=area;
        this.mainFood=mainFood;
        this.skinColor=skinColor;
        this.language=language;
    }
    // TODO 4个成员属性的getter和setter
    public void setArea(String area){
        this.area=area;
    }

    public String getArea() {
        return area;
    }

    public void setMainFood(String mainFood) {
        this.mainFood = mainFood;
    }

    public String getMainFood() {
        return mainFood;
    }
    public void setSkinColor(String skinColor){
        this.skinColor=skinColor;
    }

    public String getSkinColor() {
        return skinColor;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void printThisLanguage(){

        System.out.println(this.language);

    }
    void speak(){
        System.out.println("我说"+this.language );
    }
}
